package org.fangzz.cameramgr.cameramonitor.repository;

import org.fangzz.cameramgr.cameramonitor.model.Camera;
import org.fangzz.cameramgr.cameramonitor.model.Store;

import java.util.List;

public interface CameraRepository extends BaseRepository<Camera>{
    //查询网吧所有的摄像头
    List<Camera> findByStoreId(Integer storeId);

    //查询网吧正在转码的摄像头
    List<Camera> findByStoreAndAndAlive(Store store, Boolean isAlive);

}
